package com.zbl.zblproject.pay.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2019/1/10
 * 退款订单
 */
@TableName("zbl_refund_order")
public class RefundOrder {


    @TableId
    private long id;

    /**
     * 退款时间
     */
    private LocalDateTime refundTime;

    /**
     * 对应付款单ID
     */
    private long payId;

    /**
     * 退款全额
     */
    private BigDecimal refundPrice;

    /**
     * 操作人ID
     */
    private int userId;

    /**
     * 退款状态 0 未退款, 1 退款成功
     */
    private int status;

    /**
     * 打折
     */
    private BigDecimal discount;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public LocalDateTime getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(LocalDateTime refundTime) {
        this.refundTime = refundTime;
    }


    public BigDecimal getRefundPrice() {
        return refundPrice;
    }

    public void setRefundPrice(BigDecimal refundPrice) {
        this.refundPrice = refundPrice;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public long getPayId() {
        return payId;
    }

    public void setPayId(long payId) {
        this.payId = payId;
    }

    @Override
    public String toString() {
        return "RefundOrder{" +
                "id=" + id +
                ", refundTime=" + refundTime +
                ", payId=" + payId +
                ", refundPrice=" + refundPrice +
                ", userId=" + userId +
                ", status=" + status +
                ", discount=" + discount +
                '}';
    }
}
